function map(array, fn){
    let a = -1, maxArr = [];
    const len = array.length
    while (++a < len) {
        maxArr.push(fn(array[a], a, array))
    }
    return maxArr
}

export default map
